package doujian.filter.rules;

import doujian.model.Host;
import doujian.model.Student;
import doujian.util.Log;

/**
 * 价格匹配
 * 
 * Created by Majie on 2017/4/16.
 */
public class Price {
	/**
	 * 价格匹配
	 *
	 * @param stu
	 * @param host
	 * @return
	 */
	public static boolean filter(Student stu, Host host) {
//		int days = stu.days;
//		int requireRooms = stu.private_rooms_num + stu.public_rooms_num;
//		int totalPrice = stu.total_price;
//		int sum = 0;

		boolean result = false;
//		for (doujian.model.Room room : host.rooms) {
//			int price = room.price * days;
//			if (price < totalPrice) {
//				if (room.max_person >= requireRooms) {
//					result = true;
//				}
//				break;
//			}
//			sum += room.price;
//		}
//
//		Log.d("Price Filter: " + result);
		return result;
	}
}
